<%@ page language="java" contentType="text/html; charset=UTF-8"   pageEncoding="UTF-8"%>
<form 
 		action="reporter/daily/arm-daliy-product-reporter!importdata" 
 		enctype="multipart/form-data" 
 		method="post" 
 		target="reportframe"
 		onSubmit="return checkfield(this)"
 		>
<fieldset>
  <legend>导入年初月初数据</legend>
  <i>注意数据格式</i><br />
    文件<input type="file" name="upLoad" /><br/>
    年份<input name="year" onblur="judgeNumber(this)"/><br/>
    月份<input name="month" onblur="judgeNumber(this)"/><br/>
  <input type="submit" />
</fieldset>
</form>
<script type="text/javascript">
function checkfield(obj){
	var vin = $(":text",obj);
	var hasEmpty = false;
	$.each(vin,function(idx,item){
		if(item.value=='')hasEmpty=true;
	});
	if(hasEmpty){
		alert("表单项必须填写!");
		return false;
	}
	return true;
}
</script>
<iframe frameborder="0" style="display:none" name="reportframe"></iframe>